package com.team7.home.controller.apiController;


import com.team7.common.vo.CommonResult;
import com.team7.home.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/qian/article")
public class ApiArticleController {

    @Autowired
    private ArticleService articleService;

    /**
     * 根据id查询我们需要的底部文章
     * @param id
     * @return
     */
    @PostMapping("getAllQianArticle/{id}")
    public CommonResult getAllQianArticel(@PathVariable("id") String id){
        return articleService.getAllQianArticel( id);
    }
}
